﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MicroLink.StsDev2008AddIn.StsDevCommonObjects;

namespace ItemTemplateWizards.UI
{
    public partial class FeatureInformation : Form
    {
        public bool IncludeFeatureReceiver { get; set; }
        public FeatureScopes FeatureScope { get; set; }
 
        public FeatureInformation() : this(true)
        {
        }

        public FeatureInformation(bool showIncludeFeatureReceiver)
        {
            InitializeComponent();
            m_includeFeatureReceiver.Visible = showIncludeFeatureReceiver;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            IncludeFeatureReceiver = m_includeFeatureReceiver.Checked;
            if (m_site.Checked)
                FeatureScope = FeatureScopes.SiteCollection;
            else if (m_farm.Checked)
                FeatureScope = FeatureScopes.Farm;
            else if (m_webSite.Checked)
                FeatureScope = FeatureScopes.Web;
            else
                FeatureScope = FeatureScopes.WebApplication;
        }


    }
}
